; *** (Four Field) Kono
; *** Copyright 1998-2002 Zillions Development
; v.2.0

; You need to purchase Zillions of Games to load this rules file
; Visit the Zillions web site at http://www.zillions-of-games.com

(define hop  ($1 (verify friend?) $1 (verify enemy?) add) )
(define shift  ($1 (verify empty?) add) )
(translate
 ("Red" "红方")("Blue" "蓝方")
 ("Four Field Kono" "翻山棋")
)
(game
   (title "Four Field Kono")
   (description "吃光对方棋子，或使对方无子可动胜。\只能跳过自己的一个棋子吃掉对方。")
   (history "Four Field Kono comes from Korea.")
   (strategy "Set up your pieces carefully, and try and keep two of your
      pieces in a row so that you can capture.   Control of the central
      squares is important, because without pieces in the center you can
      only capture along the edges.")
   (option "prevent flipping" 2)
   (players Red Blue)
   (turn-order Red Blue)
   (board
      (image "images\Kono\konobd.bmp" "images\Kono\konobd2.bmp")
      (grid
            (start-rectangle 9 9 59 59) 
            (dimensions ;4x4
                ("a/b/c/d" (47 0)) 
                ("4/3/2/1" (0 47))
            )
            (directions (n 0 -1) (e 1 0) (s 0 1) (w -1 0))
      ) 
   )
   (piece
      (image Blue "images\Kono\blueball.bmp"
               Red "images\Kono\redball.bmp")
      (name Ball)
      (description "球\横向或纵向移动一格，或跳过相邻的己方棋子吃其后面相邻的对方棋子。")
  	  (help "棋子可以横向或纵向移动一格。必须跳过己方相邻子吃后面相邻的对方子。")
      (moves
            (hop n)
            (hop s)
            (hop e)
            (hop w)
            (shift n)
            (shift e)
            (shift s)
            (shift w)
      )
   )
   (board-setup
        (Blue (Ball off 99 a3 b3 c3 d3 a4 b4 c4 d4))
        (Red  (Ball off 99 a1 b1 c1 d1 a2 b2 c2 d2))
   )

   (loss-condition (Red Blue) stalemated)
   (loss-condition (Red Blue) (pieces-remaining 0))
)
